package com.syni.mdd.yhd.common.all.controller.protect.activity;

import com.syni.mdd.sjb.common.component.utils.common.annotations.CheckParams;
import com.syni.mdd.yhd.common.all.service.activity.BmsDxActivityService;
import com.syni.mdd.sjb.common.component.utils.common.utils.ParamsMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @className BmsBackCardController
 * @description TOO
 * @Author cfx
 * @DATE 2019/11/11 16:53
 * @VERSION 1.0
 **/
@RestController
@RequestMapping("/activity")
public class BmsActivityController {

    @Autowired
    BmsDxActivityService bmsDxActivityService;

    /**
     * @Description 是否有这个活动
     * @Author: cfx
     * @Date: 2019/8/2
     */
    @PostMapping("getActivitys")
    @CheckParams
    public Map<String,Object> getActivitys(@RequestBody ParamsMap paramsMap){
        return bmsDxActivityService.getActivitys(paramsMap);
    }



}
